package org.pearl.tactuator.endpoint;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.actuate.health.Status;
import org.springframework.stereotype.Component;

/**
 * Created by TD on 2021/8/15
 */
@Component
public class MyHealthIndicator implements HealthIndicator {

    @Override
    public Health health() {
        // 构建健康信息
        return Health.up().status(Status.UP).withDetail("version","1.0.0").build();
    }
}